
var _html = "";
$(document).ready(function(){
	
	
});

/**   
*  页面加载等待页面 
*/    
 function startMask(){  
	if(_html==""){
		var clientLeft =  document.body.clientLeft;
		var clientTop =  document.body.clientTop;
		var height =  window.top.document.documentElement.clientHeight;// $(document).height(); //window.screen.height-180; 
		var width = window.top.document.documentElement.clientWidth; // $(window.top).height(); //window.screen.width;    
		var leftW = 300;   
		leftW = (width - 238)/2;
		var top = 200;
		if(height!=undefined)
			top = height/2-60;
		if(window.console){
			console.log("startMask().height = "+height + " top="+top + " clientTop="+clientTop);
			console.log("startMask().width ="+width + " leftW="+leftW + " clientLeft="+clientLeft);
//			alert("startMask().width ="+width + " leftW="+leftW + " clientLeft="+clientLeft);
		}
		_html = "<div id='loading' style=\"\">";
		_html += "<div style=\"position:absolute;cursor:wait;left:"+
			leftW+"px;top:"+top+"px;width:238px;padding:12px 5px 10px 10px;background:#FBFBFB no-repeat scroll 5px 14px;border:2px solid #ccc;color:#000000;\" " +
					" >";
		_html += "<img src=\"images/loading/loading_003.gif\" />正在加载，请等待...</div></div>";     
	}
    $(window.top.document.body).append(_html);  
 }  
   
 function endMask(){  
   $(window.top.document.body).find("#loading").remove();  
 }  